package com.third.clock.manager;

import android.content.Context;

import com.tencent.bugly.crashreport.CrashReport;

/**
 * Created by Administrator on 2018/8/7 0007.
 */

public class BuglyManager implements IBaseManager{

    private Context mContext;

    private static BuglyManager mBuglyManager;

    private static final String APPID="58761a3d6b";

    private static final String APPKEY="a1bd013a-827b-4cbd-9d9c-b313826d8eed";

    private BuglyManager (Context context){
        this.mContext=context;
    }

    public static BuglyManager getInstance(Context context){
       if(mBuglyManager==null) {
           synchronized (BuglyManager.class){
               if(mBuglyManager==null){
                   mBuglyManager=new  BuglyManager(context);
               }
           }
       }
       return mBuglyManager;
    }


    @Override
    public void onCreate() {
        CrashReport.initCrashReport(mContext.getApplicationContext(), APPID, false);
    }

    @Override
    public void onDestroy() {

    }
}
